package com.usv.comparepic;

import com.usv.reader.ImageReader;
import com.usv.reader.impl.ImageFileReader;
import java.awt.Rectangle;
import java.awt.image.BufferedImage;
import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class Test {

    public static void main(String[] args) {
        File file1 = new File("image1.png");
        File file2 = new File("image2.png");

        ImageReader imgReader1 = new ImageFileReader(file1);
        ImageReader imgReader2 = new ImageFileReader(file2);

        BufferedImage bufImgOne = imgReader1.readImage();
        BufferedImage bufImgTwo = imgReader2.readImage();

        ComparePic comparator = new ComparePic();

        List ignoreList = new ArrayList();
        Rectangle rec1 = new Rectangle(620, 155, 305, 70);
        ignoreList.add(rec1);

        comparator.compareTwoImages(bufImgOne, bufImgTwo, ignoreList);
    }
}
